package com.yuanqunsoft.alimigration.service;

import java.util.List;

import com.yuanqunsoft.alimigration.bean.ApplicationBean;
import com.yuanqunsoft.alimigration.dao.support.Page;
import com.yuanqunsoft.alimigration.model.Application;
import com.yuanqunsoft.alimigration.model.Report;

public interface IApplicationService {

    public List<?> findByName(String name);

    /**
     * 返回bean
     * @param appId
     * @return
     */
    public ApplicationBean findById(Integer appId);
    
    /**
     * 返回model
     * @param appId
     * @return
     */
    public Application findByApplicationId(Integer appId);

    public boolean isNameExisted(String name);

    public boolean renameApplication(String name, Integer appId);

    public boolean addApplication(Application instance);

    public boolean deleteApplication(Integer appId);

    public List<?> getAll();

    public List<?> Query(String filters, String orders, Object... values);

    public Page<?> pageQuery(int startNo, int pageSize, String filters, String orders, Object... values);

}
